import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

@Component({
  selector: 'data-time',
  templateUrl: 'datatime.html'
})
export class DataTime {
  tabBarElement: any;
    public event = {
    month: '1990-02-19',
    timeStarts: '07:43',
    data:'1994-12-15T13:47',
    datatime:'13:47',
    datatimes:'13:47:20',
    timeEnds: '1990-02-20'
  }
  constructor(public navCtrl: NavController) {
    if (document.querySelector('.tabbar')) {
      this.tabBarElement = document.querySelector('.tabbar.show-tabbar');

    }
  
  }
  
  ionViewWillEnter() {
    if (this.tabBarElement) {
      this.tabBarElement.style.display = 'none';
    }
  }

  ionViewWillLeave() {
    if (this.tabBarElement) {
      this.tabBarElement.style.display = 'flex';
    }
  }

}
